﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/MiniSite/Customer/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/MiniSite/Customer/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">用户名</th>
                <td class="formValue">
                    <input id="F_UserName" name="F_UserName" type="text" class="form-control required" placeholder="请录入用户名" />
                </td>
                <th class="formTitle">昵称</th>
                <td class="formValue">
                    <input id="F_NickName" name="F_NickName" type="text" class="form-control required" placeholder="请录入昵称" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">密码</th>
                <td class="formValue">
                    <input id="F_Password" name="F_Password" type="text" class="form-control required" placeholder="请录入密码" />
                </td>
                <th class="formTitle">性别</th>
                <td class="formValue">
                    <input id="F_Sex" name="F_Sex" type="text" class="form-control required" placeholder="请录入性别" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">出生日期</th>
                <td class="formValue">
                    <input id="F_Birthday" name="F_Birthday" type="text" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请录入出生日期" />
                </td>
                <th class="formTitle">手机号</th>
                <td class="formValue">
                    <input id="F_Phone" name="F_Phone" type="text" class="form-control required" placeholder="请录入手机号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">城市</th>
                <td class="formValue">
                    <input id="F_City" name="F_City" type="text" class="form-control required" placeholder="请录入城市" />
                </td>
                <th class="formTitle">地区</th>
                <td class="formValue">
                    <input id="F_Area" name="F_Area" type="text" class="form-control required" placeholder="请录入地区" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">公司名称</th>
                <td class="formValue">
                    <input id="F_Company" name="F_Company" type="text" class="form-control required" placeholder="请录入公司名称" />
                </td>
                <th class="formTitle">职位</th>
                <td class="formValue">
                    <input id="F_Position" name="F_Position" type="text" class="form-control required" placeholder="请录入职位" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">邮箱</th>
                <td class="formValue">
                    <input id="F_Email" name="F_Email" type="text" class="form-control required" placeholder="请录入邮箱" />
                </td>
                <th class="formTitle">公司地址</th>
                <td class="formValue">
                    <input id="F_Address" name="F_Address" type="text" class="form-control required" placeholder="请录入公司地址" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">客户信息状态1已完成注册2已完成个人设置3已完善个人资料</th>
                <td class="formValue">
                    <input id="F_Status" name="F_Status" type="text" class="form-control required" placeholder="请录入客户信息状态1已完成注册2已完成个人设置3已完善个人资料" />
                </td>
                <th class="formTitle">排序</th>
                <td class="formValue">
                    <input id="F_Sort" name="F_Sort" type="text" class="form-control required" placeholder="请录入排序" />
                </td>
            </tr>
        </table>
    </div>
</form>


